package com.ycz.master.service.impl;

import com.ycz.master.mapper.LoanMapper;
import com.ycz.master.pojo.Loan;
import com.ycz.master.service.LoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author zyc
 * Created on 2021/10/24 15:38
 */
@Service
public class LoanServiceImpl implements LoanService {
    @Autowired
    LoanMapper mapper;

    @Override
    public List<Loan> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public List<Loan> selectByStatus(String status) {

        return mapper.selectByStatus(status);
    }
}
